import java.util.Arrays;

public class Exercise02 {
    public static void main(String[] args) {
        int arr[][]=new int[2][];
        arr[0]=new int[]{1,2,3};
        arr[1]=new int[]{4,5,6,70};
        for(int i=0;i< arr.length;i++){
            for(int j=0;j<arr[i].length;j++){
                System.out.print(arr[i][j]+" ");
            }
            System.out.println();
        }
    }
    public static void main4(String[] args) {
        int[][] arr1=new int[][]{{1,2,3},{4,5,6}};
        int[][] arr2=new int[2][3];
        int[][] arr3={{1,2,3},{1,2,3}};
        for(int[] subarr1:arr1){
            for(int x:subarr1){
                System.out.print(x+" ");
            }
            System.out.println();
        }
       /* for(int i=0;i<arr1.length;i++){
            //打印行
            for(int j=0;j<arr1[i].length;j++){
                //打印列
                System.out.print(arr1[i][j]+" ");
            }
            System.out.println();
        }*/
    }
    public static void main2(String[] args) {
        int[] arr1=new int[]{1,2,3,4,5};
        arr1[0]=3;
        arr1[1]=4;
        int[] arr2=new int[]{10,20,30,40,50};
        arr2=arr1;
        arr1[0]=100;
        arr2[1]=200;
        for(int x:arr2){
            System.out.print(x+" ");
        }
    }
    public static void main1(String[] args) {
        int[] arr=new int[]{1,2,3,4,5};
        System.out.println(arr);
        int a=0;
    }
}
